<?php

require "connect.php";
// 获取增加的新闻
$name = $_POST['name'];
$gender = $_POST['gender'];
$age = $_POST['age'];
$phone = $_POST['phone'];
$address = $_POST['address'];
$membernum = $_POST['membernum'];
$birth = $_POST['birth'];
$introduction = $_POST['introduction'];
// 插入数据
$link->query("INSERT INTO members (name,gender,age,phone,address,membernum,birth,introduction) VALUES ('$name','$gender','$age','$phone','$address','$membernum','$birth','$introduction')"); 
//添加成功返回主页
header("Location:../index.php");  

